package com.halfsword.creativecraft.event;

import com.halfsword.creativecraft.CreativeCraft;
import com.halfsword.creativecraft.entity.client.ModelLayers;
import com.halfsword.creativecraft.entity.client.NothingModel;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.EntityRenderersEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber(modid = CreativeCraft.MOD_ID,bus =Mod.EventBusSubscriber.Bus.MOD,value = Dist.CLIENT)
public class EventBusClientEvents {
    @SubscribeEvent
    public static void registerLayer(EntityRenderersEvent.RegisterLayerDefinitions event) {
        event.registerLayerDefinition(ModelLayers.NOTHING_LAYER, NothingModel::createBodyLayer);
    }
}
